<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
            list-style-type: none;
        }
        .a{
            width: 1500px;
            height: 350px;
            margin: auto;
            background-color: aqua;
            position: relative;
        }
        ul{
            margin: auto;
        }
        .b li{
            float: left;
        }
        .b{
            width: 1400px;
            height: 200px;
            margin: auto;
            position: absolute;
        }
        .c li{
            border-radius: 50%;
            width: 10px;
            height: 10px;
            background-color: black;
            float: left;
            margin: 300px 10px 10px 10px;
            cursor: pointer;
        }
        .c{
            margin-left: 600px;
        }
    </style>
</head>
<body>
    <div class="a" id="A">
        <div class="b" id="B">
        <ul>
            <li><img src="images/1.png" alt="" width="350px" height="200px"></li>
            <li><img src="images/2.png" alt="" width="350px" height="200px"></li>
            <li><img src="images/3.png" alt="" width="350px" height="200px"></li>
            <li><img src="images/4.png" alt="" width="350px" height="200px"></li>
        </ul>
    </div>
    <div class="c" id="C">
        <ul>
            <li id="q"></li>
            <li id="w"></li>
            <li id="e"></li>
            <li id="r"></li>
        </ul>
    </div>
</div>

    <script>
        var a=document.getElementById('B');
        var t=document.getElementById('C');
        var b=document.getElementById('q');
        var c=document.getElementById('w');
        var d=document.getElementById('e');
        var e=document.getElementById('r');
        var o=document.getElementById('A');
        var count=-170;
        var time=0;
        var qq;
        var yy=0;
        o.onmouseleave=function(){
        qq=setInterval(function(){
            time++;
            a.style.left=count*time+'px';
            if(time==10){
                a.style.left=0+'px';
                time=0;
            }
        },500)
        }
        o.onmouseover=function(){
            clearInterval(qq);
        }

        b.onmouseover=function(){
            yy=1;
            clearInterval(qq);
            a.style.left='0px';
        }
        c.onmouseover=function(){
            yy=1;
            clearInterval(qq);
            a.style.left='-350px';
        }
        d.onmouseover=function(){
            yy=1;
            clearInterval(qq);
            a.style.left='-700px';
        }
        e.onmouseover=function(){
            yy=1;
            clearInterval(qq);
            a.style.left='-1050px';
        }
    </script>
</body>
</html>